<!--核心企业进行代偿-->
<template>
  <el-row type="flex" justify="center" align="middle">
    <el-col :span="20">
      <div style=" vertical-align: middle; text-align: center;">
        <h2 style="color: #8e9198;margin-bottom: 10px">融资企业审核</h2>
        <el-table :data="tableData">
          <el-table-column align="center" label="企业名称" prop="date"></el-table-column>
          <el-table-column align="center" label="法人姓名" prop="Name"></el-table-column>
          <el-table-column align="center" label="法人电话" prop="Name"></el-table-column>
          <el-table-column align="center" label="法人证件号" prop="Name"></el-table-column>
          <el-table-column align="center" label="营业执照号" prop="Name"></el-table-column>
          <el-table-column align="center" label="注册资金" prop="Name"></el-table-column>
          <el-table-column align="center" label="企业资金" prop="Name"></el-table-column>
          <el-table-column align="center" label="营业执照" prop="Name"></el-table-column>
          <el-table-column align="center" label="审核状态" prop="Name"></el-table-column>
          <el-table-column align="center" label="操作">
            <el-button type="success">通过</el-button>
            <el-button type="warning" style="margin-top: 3px">否决</el-button>
          </el-table-column>
        </el-table>
        <el-pagination
            background
            layout="prev, pager, next"
            :total="1000">
        </el-pagination>
      </div>


    </el-col>
  </el-row>
</template>
<script>
export default {
  data() {
    return {
      tableData: [
        {
          date: '2023-02-01',
          Name: '张三',
        },

      ],
      coreId: '',
      PageNum: 1,
      PageSize: 2,
      total: '',
      list: {},
    }
  },
  methods: {
    requestCoreId() {
      let account = localStorage.getItem('userName');
      this.$axios.get('api/user/selectUserByAccount?account=' + account,
          {headers: {'jwt': localStorage.getItem('jwt')}})
          .then(res => {
            // console.log(res.data)
            if (res.data.code == 200) {
              this.coreId = res.data.data.userCoreId;
              this.request()
            }

          })
    },
    request() {
      let requestResult = {};
      requestResult.pageNum = this.PageNum;
      requestResult.pageSize = this.PageSize;
      let data = {
        auditResult: 1,
        coreId: this.coreId
      };
      requestResult.data = data
      // console.log(requestResult)
      this.$axios.post(
          'api/CoreRecommendationRecord/selectRecommendationByCoreId',
          requestResult,
          {headers: {'jwt': localStorage.getItem('jwt')}})
          .then(res => {
            // console.log(res.data)
            if (res.data.code == 200) {
              console.log(res.data.data.total);

            }
          })
    }
  },
  created() {
    this.requestCoreId();

  }

}
</script>
<style scoped>
.el-row {
  background-image: url("../../../assets/login/Recommend.jpg");
  background-size: 100% 100%;
  height: 100%;
}

.el-col {
  background-color: rgba(232, 241, 232, 0.46);
  padding-top: 35px;
  border-radius: 30px;
  width: 1200px;
  height: 700px;
  padding: 20px;
}

.el-button {
  width: 70px;
  height: 30px;
  padding: 0;
  margin: 0 0 0 0;
}
</style>
